<?php
include("includes/header.php");

//get page name to edit from URL - corresponds to "url" in htmlPages table
$adminSpecified = $_GET['page'];

?>
<title>LazySwim</title>
</head>

<body>
<div id="page">
    <div id="page-top">
        <div id="page-bottom">
          <div id="header">
                <div id="header-info">
                    <h1>LAZYSWIM</h1>
                    <div class="description">Simplistic Swim System</div>
                </div>
				<!-- Header Goes Here -->
                <?php printHeader(); ?>
				<!-- Header Ends Here -->
                <div id="header-date">Today is <?php echo date('l, F jS, Y'); ?></div>
                <div id="header-cats">
				<!-- Welcome Message Starts Here -->
                    <ul>
					<?php include("includes/welcomeBar.php"); ?>
					</ul>
				<!-- Welcome Message Ends Here -->	
                </div>
            </div>
            <div id="main">

                <div id="sidebar">
                    <?php
					// include the corresponding navigation page
                    include("includes/navigation.php");
					?>     
                </div>

<!-- main body -->

                <div class="featured-post">
                    <div class="post-title">
                        <h2><?php echo $currentPageTitle; ?></h2>
						<?php if($_SESSION['ls_accounttype'] == "manager") { ?>
                        <div class="post-title-info">
                            <div class="post-comments"><a target="iframe" href="qdig/admin.php">Edit Photo Gallery</a></div>
                        </div>
						<?php } ?>
                    </div>
                    <div class="post-entry">
					<?php if($adminSpecified == "admin") { ?>
					<iframe name="iframe" src="qdig/admin.php" width="630" height="500" frameborder="0">
					<?php } else { ?>
					<iframe name="iframe" src="qdig/" width="630" height="500" frameborder="0">
					<?php } ?>
						<p>Your browser does not support iframes.</p>
					</iframe>
                    </div>
                </div>
             
                <div class="clear"></div>

            </div>
			<!-- Footer Goes Here -->
            <?php include("includes/footer.php"); ?>
			<!-- Footer Ends Here -->
        </div>
    </div>
</div>
</body>
</html>
